package com.tofacebook.mybatis.model;

public class Category {

    private Long catId;  //商品分类id
    private String name;//商品分类名称
    private Long parentCid;//父分类id

    private Integer catLevel;//分类层级
    private Integer showStatus;//是否显示
    private String state;//状态的中文信息
    private Integer sort;//排序
    private String icon;//分类矢量图
    private String productUnit; //计量单位
    private Integer productCount; //这个分类下面有多少商品数
    public Category(){}
    public Category(Long parentCid){
        this.parentCid = parentCid;
    }
    public Category(Long catId, String name, Long parentCid, Integer catLevel, Integer showStatus, Integer sort, String icon, String productUnit, Integer productCount) {
        this.catId = catId;
        this.name = name;
        this.parentCid = parentCid;
        this.catLevel = catLevel;
        this.showStatus = showStatus;
        this.sort = sort;
        this.icon = icon;
        this.productUnit = productUnit;
        this.productCount = productCount;
    }

    public Long getCatId() {
        return catId;
    }

    public void setCatId(Long catId) {
        this.catId = catId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentCid() {
        return parentCid;
    }

    public void setParentCid(Long parentCid) {
        this.parentCid = parentCid;
    }

    public Integer getCatLevel() {
        return catLevel;
    }

    public void setCatLevel(Integer catLevel) {
        this.catLevel = catLevel;
    }

    public Integer getShowStatus() {
        return showStatus;
    }

    public void setShowStatus(Integer showStatus) {
        this.showStatus = showStatus;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Category{" +
                "catId=" + catId +
                ", name='" + name + '\'' +
                ", parentCid=" + parentCid +
                ", catLevel=" + catLevel +
                ", showStatus=" + showStatus +
                ", state='" + state + '\'' +
                ", sort=" + sort +
                ", icon='" + icon + '\'' +
                ", productUnit='" + productUnit + '\'' +
                ", productCount=" + productCount +
                '}';
    }
}
